package cn.edu.scau.cmi.wurihua.factory;

import cn.edu.scau.cmi.wurihua.factory.pojo.Beef;
import cn.edu.scau.cmi.wurihua.factory.pojo.Chicken;
import cn.edu.scau.cmi.wurihua.factory.pojo.Meat;
import cn.edu.scau.cmi.wurihua.factory.pojo.Pork;

public class FactoryModel {
	public static Meat produceMeat(String kindOfMeat) {
		if(kindOfMeat.equals("pork")) {
			return PorkMeatFactory.produceMeat();
		}
		else if(kindOfMeat.equals("beef")) {
			return BeefMeatFactory.produceMeat();
		}
		else if(kindOfMeat.equals("chicken")) {
			return ChickenMeatFactory.produceMeat();
		}
		else
			return new Meat();
	}
}
